-- GENERATED SPELL FOR [Skullsplitter Warrior] --


function spell0_667(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_667', 20253, 1)
end

function spell1_667(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_667', 8313, 1)
end

function Sorts_667(pUnit, Event)
local choix_sorts_667 = math.random(0, 1)
if choix_sorts_667 == 0 then
pUnit:RegisterEvent('spell0_667', 1, 1)
end
if choix_sorts_667 == 1 then
pUnit:RegisterEvent('spell1_667', 1, 1)
end
end

function mob667_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_667', math.random(1500, 3000), 1)
end

function mob667_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob667_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob667_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(667, 1, 'mob667_Action')
RegisterUnitEvent(667, 2, 'mob667_Leave')
RegisterUnitEvent(667, 3, 'mob667_Kill')
RegisterUnitEvent(667, 4, 'mob667_Die')
